<?php

use Doctrine\ORM\Mapping\ClassMetadataInfo;

$metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_NONE);
$metadata->setPrimaryTable(array(
   'name' => 'role',
  ));
$metadata->setChangeTrackingPolicy(ClassMetadataInfo::CHANGETRACKING_DEFERRED_IMPLICIT);
$metadata->mapField(array(
   'fieldName' => 'id',
   'columnName' => 'id',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => '自增主键',
   ),
   'id' => true,
  ));
$metadata->mapField(array(
   'fieldName' => 'roleName',
   'columnName' => 'role_name',
   'type' => 'string',
   'nullable' => false,
   'length' => 255,
   'options' => 
   array(
   'fixed' => false,
   'comment' => '规则名字',
   'default' => '',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'isDel',
   'columnName' => 'is_del',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => '0否1是',
   'default' => '0',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'createUser',
   'columnName' => 'create_user',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => '创建人',
   'default' => '0',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'createTime',
   'columnName' => 'create_time',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => '创建时间',
   'default' => '0',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'updateUser',
   'columnName' => 'update_user',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => '修改人',
   'default' => '0',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'updateTime',
   'columnName' => 'update_time',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => '修改时间',
   'default' => '0',
   ),
  ));
$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_IDENTITY);